import {  L_request } from './request.js'


/**
 *
 * @param {
 * acc:string
 * pwd:string
 * } data
 */
export function getSort() {


    return L_request({
        url: 'index/Sponsor/getSort',
    })
}

export function addGoods(data) {
    return L_request({
        url: 'index/Sponsor/addGoods',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        },
    })
}

export function thumbnail(data) {
    return L_request({
        url: 'index/Sponsor/upload_pic',
        enctype: "multipart/form-data",
        method: 'post',
        data,

    })
}
export function long_pic(data) {
    return L_request({
        url: 'index/Sponsor/upload_pic',
        enctype: "multipart/form-data",
        method: 'post',
        data,

    })
}
export function detail_pic(data) {
    return L_request({
        url: 'index/Sponsor/upload_pic',
        enctype: "multipart/form-data",
        method: 'post',
        data,

    })
}
export function submit_total(data) {
    return L_request({
        url: 'index/Sponsor/submit_total',
        method: 'post',
        enctype: "multipart/form-data",
        data
    })
}